/* eslint-disable no-duplicate-imports */
import Vue from 'vue'
import Vuex from 'vuex'
import {mapState} from 'vuex'
import getters from './getters'
// 初始化esri Api
// import arcgis from '@/bone/controller/ArcgisApi'
import arcgis from '@/assets/js/ArcgisApi'

Vue.use(Vuex);
// store有四个属性：state、getters,mutations,actions
const store = new Vuex.Store({
  // modules让每一个store模块都能拥有自己的state，mutation，getters,actions,这样的方式结构更加清晰
  modules: {
    arcgis
  },
  getters,
  mapState
});

export default store
